import Vue from "vue";
import AppLoading from "@/components/app-loading/app-loading.vue";

const Loading=() => {
    let component = AppLoading;
    const vm = new Vue({
        render(h) {
            return h(component);
        }
    }).$mount();
    document.body.appendChild(vm.$el);
    const comp:any = vm.$children[0];
    return comp;
}

export default Loading;